import request from '@/utils/request'
/** Start 短信设置 **/
// 短信通知列表
export function apiRechargeGetRule() {
    return request.get({ url: '/marketing.recharge/getSettings' })
}
export function apiRechargeSetRule(params: any) {
    return request.post({ url: '/marketing.recharge/setSettings', params })
}
//小票打印

export function getprinterlists(params: any) {
    return request.get({ url: '/marketing.printer/lists', params })
}
export function printerStatus(params: any) {
    return request.post({ url: '/marketing.printer/status', params })
}

export function delprinter(params: any) {
    return request.post({ url: '/marketing.printer/del', params })
}
export function addprinter(params: any) {
    return request.post({ url: '/marketing.printer/add', params })
}
export function editprinter(params: any) {
    return request.post({ url: '/marketing.printer/edit', params })
}
///adminapi/marketing.printer/detail
export function detailprinter(params: any) {
    return request.get({ url: '/marketing.printer/detail', params })
}
//模板
export function gettemplatelists(params: any) {
    return request.get({ url: '/marketing.printer_template/lists', params })
}
export function addtemplate(params: any) {
    return request.post({ url: '/marketing.printer_template/add', params })
}
//adminapi/marketing.printer_template/del
export function deltemplate(params: any) {
    return request.post({ url: '/marketing.printer_template/del', params })
}
///adminapi/marketing.printer_template/detail
export function templatedetail(params: any) {
    return request.get({ url: '/marketing.printer_template/detail', params })
}
export function templateedit(params: any) {
    return request.post({ url: '/marketing.printer_template/edit', params })
}
//足迹气泡
export function footprintlists() {
    return request.get({ url: '/marketing.footprint/lists' })
}
///adminapi/marketing.footprint/status
export function changefootprintstatus(params: any) {
    return request.post({ url: '/marketing.footprint/status', params })
}
//设置气泡
export function getConfiglists() {
    return request.get({ url: '/marketing.footprint/getConfig' })
}
export function setConfig(params: any) {
    return request.post({ url: '/marketing.footprint/setConfig', params })
}
//领取记录
export function getcouponlists(params: any) {
    return request.get({ url: '/marketing.coupon_lists/lists', params })
}
//作废
export function setcouponlists(params: any) {
    return request.post({ url: '/marketing.coupon_lists/void', params })
}
//优惠券列表
export function GetcouponLists(params?: any) {
    return request.get({ url: '/marketing.coupon/lists', params })
}
//优惠券详情/adminapi/marketing.coupon/detail
export function getCoupondetail(params: any) {
    return request.get({ url: '/marketing.coupon/detail', params })
}
//添加优惠券
export function addCoupon(params: any) {
    return request.post({ url: '/marketing.coupon/add', params })
}
//编辑优惠券
export function editCoupon(params: any) {
    return request.post({ url: '/marketing.coupon/edit', params })
}
//开始领取/adminapi/marketing.coupon/open
export function startCoupon(params: any) {
    return request.post({ url: '/marketing.coupon/open', params })
}
export function overCoupon(params: any) {
    return request.post({ url: '/marketing.coupon/stop', params })
}
//系统发放优惠券
export function sendCoupon(params: any) {
    return request.post({ url: '/marketing.coupon/send', params })
}
//抢购列表/adminapi/marketing.seckill/lists
export function getseckilllists(params: any) {
    return request.get({ url: '/marketing.seckill/lists', params })
}
//删除优惠券
export function delCoupon(params: any) {
    return request.post({ url: '/marketing.coupon/delete', params })
}
//开启抢购活动/adminapi/marketing.seckill/open
export function startseckill(params: any) {
    return request.post({ url: '/marketing.seckill/open', params })
}
//结束抢购活动
export function overseckill(params: any) {
    return request.post({ url: '/marketing.seckill/stop', params })
}
//删除抢购活动/adminapi/marketing.seckill/delete
export function delseckill(params: any) {
    return request.post({ url: '/marketing.seckill/delete', params })
}
//添加抢购活动/adminapi/marketing.seckill/add
export function addseckill(params: any) {
    return request.post({ url: '/marketing.seckill/add', params })
}
//抢购活动详情
export function seckilldetial(params: any) {
    return request.get({ url: '/marketing.seckill/detail', params })
}
//编辑抢购活动
export function editseckill(params: any) {
    return request.post({ url: '/marketing.seckill/edit', params })
}
//优惠券基本信息/adminapi/marketing.coupon/info
export function getbasecoupon(params: any) {
    return request.get({ url: '/marketing.coupon/info', params })
}
